//搜索tab转换
var timer =window.setInterval("deleteTimer()",50);

function initSearchTips() {
	var treeNode = document.getElementById("container_search_tips_ul");
	for ( var i = 0; i < treeNode.childNodes.length; i++) {
		var obj = treeNode.childNodes[i];
		obj.onclick = function() {
			searchTab(this);
		}
		obj.className = "flash";
	}
}

function deleteTimer() {
	window.clearInterval(timer);
	var treeNode = document.getElementById("container_search_tips_ul");
	for ( var i = 0; i < treeNode.childNodes.length; i++) {
		var obj = treeNode.childNodes[i];
		obj.onclick = function() {
			searchTab(this);
		}
		obj.className = "";
	}
	document.getElementById("search_first_tab").className = "current";
}

function searchTab(ev) {
	var treeNode = document.getElementById("container_search_tips_ul");
	for ( var i = 0; i < treeNode.childNodes.length; i++) {
		var obj = treeNode.childNodes[i];
		obj.className = "";
	}
	ev.className = "current";
}